package com.neusoft.bizcore.activiti.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.neusoft.bizcore.activiti.dto.ProcessDTO;
import com.neusoft.bizcore.web.support.Searchable;

public interface ProcessService {

    List<ProcessDTO> index(Searchable searchable);

    Page<ProcessDTO> search(Pageable pageable, Searchable searchable);

    ProcessDTO create(ProcessDTO dto);

    ProcessDTO update(Long id, ProcessDTO dto);

    ProcessDTO details(Long id);

    void delete(Long id);

    ProcessDTO details(String code);
}
